package com.six.work.servicesImpl;

import com.six.work.entity.Applicant;
import com.six.work.entity.Swords;
import com.six.work.mapper.SwordsMapper;
import com.six.work.services.SwordsServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SwordsServicesImpl implements SwordsServices {
    @Autowired
    private SwordsMapper swordsMapper;

    @Override
    public List<Swords> findAllSwords() {
        List<Swords> list = swordsMapper.findAllSwords();

        return list;
    }

    @Override
    public Integer DelSwordsByID(Integer word_id){
        return swordsMapper.DelSwordsByID(word_id);
    }

    @Override
    public Integer insertSwords(Swords swords) {
        return swordsMapper.insertSwords(swords);
    }

    @Override
    public Integer updateSwords(Swords swords) {
        return swordsMapper.updateSwords(swords);
    }

    @Override
    public Swords SelectSwordsByID(Integer word_id) {
        return swordsMapper.SelectSwordsByID(word_id);
    }
}
